import request from '@/utils/request'

// 查询Ade Knowledge Cache列表
export function listCache(query) {
  return request({
    url: '/ade/cache/list',
    method: 'get',
    params: query
  })
}

// 查询Ade Knowledge Cache详细
export function getCache(id) {
  return request({
    url: '/ade/cache/' + id,
    method: 'get'
  })
}

// 新增Ade Knowledge Cache
export function addCache(data) {
  return request({
    url: '/ade/cache',
    method: 'post',
    data: data
  })
}

// 修改Ade Knowledge Cache
export function updateCache(data) {
  return request({
    url: '/ade/cache',
    method: 'put',
    data: data
  })
}

// 删除Ade Knowledge Cache
export function delCache(id) {
  return request({
    url: '/ade/cache/' + id,
    method: 'delete'
  })
}
